﻿@model IEnumerable<AuditModel.ScorePercentage>

@{
    ViewBag.Title =AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/SubjectAdmin/_SubjectAdminLayout.cshtml";
}

<h2>@AuditResources.ScorePercentage.ObjectName</h2>

<!--<p>
    @Html.ActionLink("Create New", "Create")
</p>-->
<table>
    <tr>
        <th>
            @AuditResources.ScorePercentage.AnnualEvent
        </th>
        <th>
            @AuditResources.ScorePercentage.Subject
        </th>
        <th>
            @AuditResources.ScorePercentage.PercentofMaterial
        </th>
        <th>
            @AuditResources.ScorePercentage.PercentofInstruction
        </th>
        <th>
            @AuditResources.ScorePercentage.PercentofDefense
        </th>        
        <th>
            @AuditResources.ScorePercentage.PercentofOthers
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.AnnualEventID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Subject.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PercentofMaterial)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PercentofInstruction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PercentofDefense)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PercentofOthers)
        </td>
        <td>
            @Html.ActionLink(AuditResources.UI.Edit, "Edit", new { id = item.AnnualEventID, subjectid = item.SubjectID }, new { @class = "button" })
            <!--
             |@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
            -->
        </td>
    </tr>
}

</table>
